{"version":3,"file":"static/chunks/pages/web/[slug]-ba2386eb6706ed19.js","mappings":"sFACKA,OAAOC,SAAWD,OAAOC,UAAY,IAAIC,KAAK,CAC7C,cACA,WACE,OAAO,EAAQ,W,qICuBvB,UAVgB,Y,IAAGC,EAAI,EAAJA,KACXC,GAAaC,EAAAA,EAAAA,GAAgBF,EAAKG,KAAKC,MAE7C,OACE,SAACC,EAAAA,EAAM,CAACC,YAAiB,OAAJN,QAAI,IAAJA,OAAAA,EAAAA,EAAMM,Y,UACzB,SAACL,EAAU,CAACM,WAAYC,EAAAA,S","sources":["webpack://_N_E/?a49d","webpack://_N_E/./pages/web/[slug].tsx"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/web/[slug]\",\n function () {\n return require(\"private-next-pages/web/[slug].tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/web/[slug]\"])\n });\n }\n ","import { allWebs } from '.contentlayer/generated'\nimport type { GetStaticProps } from 'next'\nimport Layout from './../../layouts/index'\nimport { useMDXComponent } from 'next-contentlayer/hooks'\nimport { MDXComponents } from 'components/mdx-components/mdx-components'\n\nexport const getStaticPaths = () => {\n const paths = allWebs.map(post => `/${post._raw.flattenedPath}`)\n return { paths, fallback: false }\n}\n\nexport const getStaticProps: GetStaticProps = context => {\n const slug = context.params!.slug\n const post = allWebs.find(post => post._id.includes(slug as string))\n return { props: { post } }\n}\n\nconst WebPost = ({ post }) => {\n const MDXContent = useMDXComponent(post.body.code)\n\n return (\n \n \n \n )\n}\n\nexport default WebPost\n"],"names":["window","__NEXT_P","push","post","MDXContent","useMDXComponent","body","code","Layout","frontMatter","components","MDXComponents"],"sourceRoot":""}